<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>[Generic Component Framework v3] GCF::LogMessage Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<!--link href="tabs.css" rel="stylesheet" type="text/css"-->
</head><body>
 <div id="wrapper">
    <div id="logo_box">
        <a class="img_link" href="https://github.com/pnudupa/gcf" target="_blank" ><img style="float:left;margin-left:10px;margin-top:5px;margin-bottom:5px;"src="header_gcf_logo.jpg" alt="GCF LOGO"/></a>
        <a class="img_link" href="https://www.vcreatelogic.com/" target="_blank" ><img style="float:right;margin-right:10px; margin-top: 30px;" src="header_vcl_logo.jpg" alt="VCL LOGO"/></a>
        <div style="clear:both"></div>
    </div>
    <div class="nav">
        <ul>
            <li class="selectedpage">
                <a class="a-home" href="index.html" >
                    <span>Home</span>
                </a>
            </li>
            <li>
                <a class="a-classes " href="classes.html">
                    <span>All Classes</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_modules.html">
                    <span>Modules</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_guides_and_videos.html">
                    <span>Guides & Videos</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_tools_and_inbuilt_components.html">
                    <span>Tools & Components</span>
                </a>
            </li>
        </ul>
    </div>
    <div id="main-content">
        <div class="inside">
        <div>
<!-- Generated by Doxygen 1.8.16 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>GCF</b></li><li class="navelem"><a class="el" href="class_g_c_f_1_1_log_message.html">LogMessage</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_g_c_f_1_1_log_message-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">GCF::LogMessage Class Reference<div class="ingroups"><a class="el" href="group__gcf__core.html">GCF Core Module</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Represents a single message in the log.  
 <a href="class_g_c_f_1_1_log_message.html#details">More...</a></p>

<p><code>#include &lt;GCF3/Log&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a32a7e105d7f5317b9030130d9e2faeb5"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_log_message.html#a32a7e105d7f5317b9030130d9e2faeb5">LogLevel</a> </td></tr>
<tr class="separator:a32a7e105d7f5317b9030130d9e2faeb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5774ff9715f1fbe5f3e136511ffcc055"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_log_message.html#a5774ff9715f1fbe5f3e136511ffcc055">~LogMessage</a> ()</td></tr>
<tr class="separator:a5774ff9715f1fbe5f3e136511ffcc055"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dbd6df812295e37dd0a41d18bcb4387"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_g_c_f_1_1_log_message.html">GCF::LogMessage</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_log_message.html#a0dbd6df812295e37dd0a41d18bcb4387">parent</a> () const</td></tr>
<tr class="separator:a0dbd6df812295e37dd0a41d18bcb4387"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9c7ddfcc3f5fbda5aec47b59ff06b55"><td class="memItemLeft" align="right" valign="top">QList&lt; <a class="el" href="class_g_c_f_1_1_log_message.html">GCF::LogMessage</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_log_message.html#ac9c7ddfcc3f5fbda5aec47b59ff06b55">children</a> () const</td></tr>
<tr class="separator:ac9c7ddfcc3f5fbda5aec47b59ff06b55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a503e4af52d5f2a57d638309ed2568786"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_log_message.html#a503e4af52d5f2a57d638309ed2568786">logLevel</a> () const</td></tr>
<tr class="separator:a503e4af52d5f2a57d638309ed2568786"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3dcf7f09faf61523193a301dc58a65e0"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_log_message.html#a3dcf7f09faf61523193a301dc58a65e0">context</a> () const</td></tr>
<tr class="separator:a3dcf7f09faf61523193a301dc58a65e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fd2e0dc4326e76cc210c5f963ddc9eb"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_log_message.html#a5fd2e0dc4326e76cc210c5f963ddc9eb">logCode</a> () const</td></tr>
<tr class="separator:a5fd2e0dc4326e76cc210c5f963ddc9eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2107acc93b155519762b85472e6ee2c8"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_log_message.html#a2107acc93b155519762b85472e6ee2c8">message</a> () const</td></tr>
<tr class="separator:a2107acc93b155519762b85472e6ee2c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae666c1980968518f65339093375bad05"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_log_message.html#ae666c1980968518f65339093375bad05">details</a> () const</td></tr>
<tr class="separator:ae666c1980968518f65339093375bad05"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Instances of this class are created by <a class="el" href="class_g_c_f_1_1_log.html#aee583f05fd246b458d518700612c6696">GCF::Log::info()</a>, <a class="el" href="class_g_c_f_1_1_log.html#a0683f2db44afbd398a245b75b0bc212a">GCF::Log::warning()</a>, <a class="el" href="class_g_c_f_1_1_log.html#a20785dad755436ec535ecaf7fc4c385f">GCF::Log::debug()</a>, <a class="el" href="class_g_c_f_1_1_log.html#ac0e4c2f870f2b524c16bb0e9a2509627">GCF::Log::error()</a>, <a class="el" href="class_g_c_f_1_1_log.html#a25050704c840e94355f1536f34842ac9">GCF::Log::fatal()</a> and stored in the log message hierarchy, until the message is handled by the log message handler (<a class="el" href="class_g_c_f_1_1_log_message_handler_interface.html">GCF::LogMessageHandlerInterface</a>). As soon as the message is handled; it gets destroyed.</p>
<p>This class is internal. You will need to use it only if you are writing your own handler. </p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a32a7e105d7f5317b9030130d9e2faeb5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32a7e105d7f5317b9030130d9e2faeb5">&#9670;&nbsp;</a></span>LogLevel</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_g_c_f_1_1_log_message.html#a32a7e105d7f5317b9030130d9e2faeb5">GCF::LogMessage::LogLevel</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Enumeration of log message levels </p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a5774ff9715f1fbe5f3e136511ffcc055"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5774ff9715f1fbe5f3e136511ffcc055">&#9670;&nbsp;</a></span>~LogMessage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GCF::LogMessage::~LogMessage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Destroys the log message and all its children </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a0dbd6df812295e37dd0a41d18bcb4387"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0dbd6df812295e37dd0a41d18bcb4387">&#9670;&nbsp;</a></span>parent()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_log_message.html">GCF::LogMessage</a> * GCF::LogMessage::parent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>pointer to the parent log message </dd></dl>

</div>
</div>
<a id="ac9c7ddfcc3f5fbda5aec47b59ff06b55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9c7ddfcc3f5fbda5aec47b59ff06b55">&#9670;&nbsp;</a></span>children()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; <a class="el" href="class_g_c_f_1_1_log_message.html">GCF::LogMessage</a> * &gt; GCF::LogMessage::children </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>list of pointers to children messages </dd></dl>

</div>
</div>
<a id="a503e4af52d5f2a57d638309ed2568786"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a503e4af52d5f2a57d638309ed2568786">&#9670;&nbsp;</a></span>logLevel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int GCF::LogMessage::logLevel </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>log-level value. It can be any of the <a class="el" href="class_g_c_f_1_1_log_message.html#a32a7e105d7f5317b9030130d9e2faeb5">GCF::LogMessage::LogLevel</a> values. </dd></dl>

</div>
</div>
<a id="a3dcf7f09faf61523193a301dc58a65e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3dcf7f09faf61523193a301dc58a65e0">&#9670;&nbsp;</a></span>context()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString GCF::LogMessage::context </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>context of the log message </dd></dl>

</div>
</div>
<a id="a5fd2e0dc4326e76cc210c5f963ddc9eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5fd2e0dc4326e76cc210c5f963ddc9eb">&#9670;&nbsp;</a></span>logCode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray GCF::LogMessage::logCode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>code of the log message </dd></dl>

</div>
</div>
<a id="a2107acc93b155519762b85472e6ee2c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2107acc93b155519762b85472e6ee2c8">&#9670;&nbsp;</a></span>message()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString GCF::LogMessage::message </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>one-line text of the log message </dd></dl>

</div>
</div>
<a id="ae666c1980968518f65339093375bad05"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae666c1980968518f65339093375bad05">&#9670;&nbsp;</a></span>details()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString GCF::LogMessage::details </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>multi-line text of the log message </dd></dl>

</div>
</div>
</div><!-- contents -->
</div>
</div>
</div>
<div class="footer_content">
<table width="100%" class="footer">
<tr>
<td align="left" width="50%">Copyright &copy; 2013-2019,
 <a class="el" href="http://www.vcreatelogic.com" target="_black">VCreate Logic Private Limited</a></td>
<td align="right" width="50%"><a class="el" href="http://www.vcreatelogic.com/products/gcf" target="_black">GCF - Generic Component Framework</a></td>
</tr>
</table>
</div>
</div>
</body>
</html>
